package com.pwt.service;

import com.pwt.common.CustomException;
import com.pwt.common.ResultCode;
import com.pwt.common.ResultPage;
import com.pwt.entity.MachineManage;
import com.pwt.entity.MachineProduct;
import com.pwt.entity.ManageFeature;
import com.pwt.entity.ProductManage;
import com.pwt.model.MachineManageModel;
import com.pwt.model.ProductManageModel;
import com.pwt.repository.MachineManageRepository;
import com.pwt.repository.MachineProductRepository;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * MachineManage service层
 *
 * @author auto generated
 * @date 2021-08-31 12:03:28
 */
@Service
public class MachineManageService {

    private MachineManageRepository machineManageRepository;

    private MachineProductRepository machineProductRepository;

    public MachineManageService(MachineManageRepository machineManageRepository, MachineProductRepository machineProductRepository) {
        this.machineManageRepository = machineManageRepository;
        this.machineProductRepository = machineProductRepository;
    }

    public ResultPage<MachineManageModel> getList(String name, Integer offset, Integer limit){
        return this.machineManageRepository.getList( name, offset, limit);
    };

}
